admin_head-{$hook_suffix}
Action HookDescription
Generic Iframe header for use with Thickbox.Hook Information
File Location |
wp-admin/includes/template.php
View on GitHub
|
Hook Type | Action |
Line Number | 2171 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
Optional. Title of the Iframe page. Default empty. |
bool
|
$deprecated
|
Not used. |
Usage Examples
Basic Usage
<?php
// Hook into admin_head-{$hook_suffix}
add_action('admin_head-{$hook_suffix}', 'my_custom_function', 10, 2);
function my_custom_function($title, $deprecated) {
// Your custom code here
}
Source Code Context
wp-admin/includes/template.php:2171
- How this hook is used in WordPress core
<?php
2166
2167 /** This action is documented in wp-admin/admin-header.php */
2168 do_action( 'admin_print_scripts' );
2169
2170 /** This action is documented in wp-admin/admin-header.php */
2171 do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
2172
2173 /** This action is documented in wp-admin/admin-header.php */
2174 do_action( 'admin_head' );
2175
2176 $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
PHP Documentation
<?php
/**
* Generic Iframe header for use with Thickbox.
*
* @since 2.7.0
*
* @global string $hook_suffix
* @global string $admin_body_class
* @global string $body_id
* @global WP_Locale $wp_locale WordPress date and time locale object.
*
* @param string $title Optional. Title of the Iframe page. Default empty.
* @param bool $deprecated Not used.
*/
Quick Info
- Hook Type: Action
- Parameters: 2
- File: wp-admin/includes/template.php
Related Hooks
Related hooks will be displayed here in future updates.